<?php

$path = dirname(dirname(__FILE__));
require($path . '/config/database.php');
require($path . '/function/sqlcon.php');

$rst = new sqlcon();

//设置家电维修信息重新排序
$rst->setSql('update electronic set sort = rand() * 25 where status = 1');
$rst->execute();

//设置家政服务信息重新排序
$rst->setSql('update housecraft set sort = rand() * 25 where status = 1');
$rst->execute();

//设置其他服务信息重新排序
$rst->setSql('update other set sort = rand() * 25 where status = 1');
$rst->execute();



//设置首页推荐信息重新排序
$rst->setSql('update recommend set sort = rand() * 25 where status = 1');
$rst->execute();